# Contributor: sick <sick@rape.lol>
# Maintainer sick <sick@rape.lol>
pkgname=toxcore
pkgver=0.1.10
pkgrel=0
pkgdesc="Encrypted peer-to-peer instant messenger protocol library"
url="https://tox.chat"
arch="all"
license="GPL-3"
depends="libsodium"
makedepends="$depends-dev opus-dev libvpx-dev autoconf automake libtool" 
subpackages="$pkgname-dev "
source="c-$pkgname-$pkgver.tar.gz::https://github.com/TokTok/c-$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/c-$pkgname-$pkgver"

build() {
	cd "$builddir"
    ./autogen.sh
    ./configure --prefix=/usr --enable-daemon || return 1
    make || return 1

}

package() {
	cd "$builddir"
    make DESTDIR=$pkgdir install || return 1
}

sha512sums="2274346f941711579139c0dfb29cb916b04e6c3319ab6ebf99e4980d020b02e9fed6ae5edfebda98be58296bbe21ea02f441dc900ad54cd8873db0e6f02b8158  c-toxcore-0.1.10.tar.gz"
